<?php
	require_once("web_fns.php");
	if (!session_id()) session_start();
	if(!isset($_SESSION['user_id'])) {
		echo 2;
	}
	else {
		$nickname = $_POST['nickname'];
		$address = $_POST['address'];
		$check_result = change_userinfo($users_info,$_SESSION['user_id'],$nickname,$address);
		if($check_result==1) {
			echo 1;
		}
		else 
			echo 0;
	}
?>